package org.csmzxy.class2333;

public class Animal {
    public void speak(){
        System.out.println("动物发出叫声");
    }
}

class Dog extends Animal{
    @Override
    public void speak() {
        System.out.println("狗发出汪汪的叫声");
    }
}

class Cat1 extends Animal{
    @Override
    public void speak() {
        System.out.println("猫发出喵喵的叫声");
    }
}